<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Return MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="phar.getmodified.html">Phar::getModified</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="phar.getstub.html">Phar::getStub</a></div>
 <div class="up"><a href="class.phar.html">Phar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="phar.getsignature" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Phar::getSignature</h1>
  <p class="verinfo">(PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">Phar::getSignature</span> &mdash; <span class="dc-title">Return MD5/SHA1/SHA256/SHA512/OpenSSL signature of a Phar archive</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-phar.getsignature-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><strong>Phar::getSignature</strong></span>
    ( <span class="methodparam">void</span>
   )</div>


  <p class="para rdfs-comment">
   Returns the verification signature of a phar archive in a hexadecimal string.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-phar.getsignature-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-phar.getsignature-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Array with the opened archive&#039;s signature in <em>hash</em> key and <em>MD5</em>,
   <em>SHA-1</em>,
   <em>SHA-256</em>, <em>SHA-512</em>, or <em>OpenSSL</em>
   in <em>hash_type</em>.  This signature is a hash calculated on the
   entire phar&#039;s contents, and may be used to verify the integrity of the archive.
   A valid signature is absolutely required of all executable phar archives if the
   <a href="phar.configuration.html#ini.phar.require-hash" class="link">phar.require_hash</a> INI variable
   is set to true.
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="phar.getmodified.html">Phar::getModified</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="phar.getstub.html">Phar::getStub</a></div>
 <div class="up"><a href="class.phar.html">Phar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
